<?php
	
	# include the shield
	include_once('class.shield.php');

	# delcare the shield
	$shield = new shield();

	if(isset($_POST[$shield->VAR_NAME]))
	{
?>
This is what has been sent via POST. You can see none of the original data is contained.<br />
<br />
<pre>
<?php
		print_r($_POST);
?>
</pre>
<br />
<br />
However now take a look at POST again after exposing the data. You will also find that the <br />
REQUEST super global has also been modified.<br />
<br />
<pre>
<?php
		# expost the data
		$shield->expose();
		print_r($_POST);
?>
</pre>
<?php
		exit;
	}
?>

This example creates a hidden form input and submits the data to the next page.<br />
Check out the source code.<br />
<br />
<form name="shield_test" method="post" action="">
	<input type="submit" id="Submit" name="Submit" value="Sumbit Shielded Data" />
	<input type="hidden" name="devil" value="666" />
	<!-- The input tag below has been generate by the class -->
<?php
	
	# the data to be transmitted
	$data['goto'] = 'Narnia';
	$data['kill'] = 'pixies';

	# protect the data
	$str = $shield->protect($data, SHIELD_INPUT);
	
	# echo the input
	echo "\t".$str;
?>
</form>